import request from "@/utils/request.js";

/**
 * 获取用户列表
 * 
 */
export function getShare(data) {
	return request.get(`share`,data);
}
/**
 * 获取用户列表
 * 
 */
export function getUserList(data) {
	return request.get(`article/list/${data.cid}`,data);
}
/**
 * 获取用户信息
 * 
 */
export function getUserInfo(uid) {
	return request.get(`article/details/${uid}`);
}
/**
 * 获取赛事
 * 
 */
export function getCategoryList(uid) {
	return request.get(`article/category/list`);
}
/**
 * 获取榜单
 * 
 */
export function getPraiseLog(data) {
	return request.get(`article/praiseLog/${data.cid}`, data);
}
/**
 * 投票
 * 
 */
export function getPraise(data) {
	return request.post(`article/praise`,data);
}
/**
 * 投票
 * 
 */
export function getRank(data) {
	return request.get(`article/rank/${data.id}`,data);
}